<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>精研 3.0 - FooTable</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico"> <link href="/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">

    <link href="/css/animate.min.css" rel="stylesheet">
    <link href="/css/style.min.css?v=4.0.0" rel="stylesheet"><base target="_blank">
    <!-- Sweet Alert -->
    <link href="/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <!-- 弹窗-->
    <script src="../../tanchuan/js/jquery-2.0.0.min.js"></script>
    <link href="../../tanchuan/css/displaystyle.css" rel="stylesheet" />
    <script src="../../tanchuan/js/syntaxhighlighter_3.0.83/shCore.js"></script>
    <script src="../../tanchuan/js/syntaxhighlighter_3.0.83/shBrushJScript.js"></script>
    <link href="../../tanchuan/js/syntaxhighlighter_3.0.83/styles/shCoreRDark.css" rel="stylesheet" />
    <script src="../../tanchuan/js/NZ-Plugin/Js/NZ-Window.min.js"></script>
    <link href="../../tanchuan/js/NZ-Plugin/Css/NZ-Window.min.css" rel="stylesheet" />
    <script src="../../tanchuan/js/NZ-Plugin/Js/NZ-Drag.min.js"></script>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h1 style="font-family:arial;color: red">
                        顽主杯千万组  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!--                        <a style="font-size:20px;color:coral;" onclick="showTag('/zy/baodan')">>>>报单</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-->
<!--                        <a style="font-size:20px;color:coral;" onclick="showTag('/zy/downLoad')">>>>下载报表</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-->
<!--                        <a style="font-size:20px;color:coral;" onclick="showTag('/zy/initAddNewUser')">>>>新增报名</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-->
<!--                        <a style="font-size:20px;color:coral;" onclick="showTag('/zy/initUpload')">>>>导入今日成绩</a>-->
                    </h1>
                    <div class="ibox-tools">

                    </div>
                </div>
                <br class="ibox-content">

                <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="100">
                    <thead>
                    <tr style="font-family:arial;font-size:18px;">
                        <th >排名</th>
                        <th >选手</th>
                        <th >今日资产</th>
                        <th >今日收益</th>
                        <th >总收益率</th>
                        <th data-hide="all"></th>
                        <th >仓位</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr class="gradeX" th:each="tag,resultStat:${qianWanZhu}" >
                        <td th:text="${tag.groupRank}"  style="font-family:arial;font-size:20px;"></td>
                        <td th:text="${tag.username}"  style="font-family:arial;font-size:20px;"></td>
                        <td th:text="${#numbers.formatInteger(tag.todayFund, 2, 'COMMA')}"  style="font-family:arial;font-size:20px;color: red"></td>
                        <!-- 今日收益 -->
                        <td th:if="${tag.orgTodayIncome!=null?tag.orgTodayIncome:0} ge 0" th:text="${tag.todayIncome}"  style="font-family:arial;font-size:20px; color: red"></td>
                        <td th:if="${tag.orgTodayIncome!=null?tag.orgTodayIncome:0} lt 0" th:text="${tag.todayIncome}"  style="font-family:arial;font-size:20px; color: green"></td>

                        <!-- 总收益率 -->
                        <td th:if="${tag.orgTotalIncome!=null?tag.orgTotalIncome:0} ge 0" th:text="${tag.totalIncome}"  style="font-family:arial;font-size:20px; color: red"></td>
                        <td th:if="${tag.orgTotalIncome!=null?tag.orgTotalIncome:0} lt 0" th:text="${tag.totalIncome}"  style="font-family:arial;font-size:20px; color: green"></td>
                        <td>
                            <a th:text="'今日持仓----------------------昨日持仓'"  style="font-family:arial;color:deeppink;font-size:20px;" > </a></br>
                            <img th:src="${tag.getTodayStockImg()}" alt="图片加载失败" style="max-width: 500px; margin-top: 10px;" />
                            <img th:src="${tag.yesterdayStockImg}" alt="图片加载失败" style="max-width: 500px; margin-top: 10px;" />
                        </td>
                        <td th:text="${tag.cangwei}"  style="font-family:arial;font-size:20px;"></td>
                        <td>
                            <a  th:id="${tag.username}"  onclick="modifyUserInfo(this)" > <i class="badge btn-danger">查看历史</i> </a>
                        </td>
                    </tr>
                    </tbody>
                    <tfoot>
                    <tr>
                        <td colspan="5">
                            <ul class="pagination pull-right"></ul>
                        </td>
                    </tr>
                    </tfoot>
                </table>

            </div>
        </div>
    </div>
</div>
</div>
<!--    <script src="/js/jquery.min.js?v=2.1.4"></script>-->
<!--    <script src="/js/bootstrap.min.js?v=3.3.5"></script>-->
<script src="/js/plugins/footable/footable.all.min.js"></script>
<!--    <script src="/js/content.min.js?v=1.0.0"></script>-->

<!--    <script src="/js/jquery.min.js?v=2.1.4"></script>-->
<script src="/js/bootstrap.min.js?v=3.3.5"></script>
<script src="/js/plugins/sparkline/jquery.sparkline.min.js"></script>
<script src="/js/plugins/peity/jquery.peity.min.js"></script>
<script src="/js/content.min.js?v=1.0.0"></script>
<script src="/js/demo/peity-demo.min.js"></script>
<script src="/js/plugins/gritter/jquery.gritter.min.js"></script>
<script src="/js/plugins/sweetalert/sweetalert.min.js"></script>
<script>
    $(document).ready(function(){$(".footable").footable();$(".footable2").footable()});
</script>

<script>
    function stockMinutes30(object){
        var code=object.id;
        $.NZ_Window.show({
            url: '/stockMinutes30?code='+code,
            width: 1500,
            height: 1000,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }


    function stockReDianKan24Hour(object){
        var code=object.id;
        $.NZ_Window.show({
            url: '/ths/stockKanDian?type=24Hour&code='+code,
            width: 1500,
            height: 1000,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }

    function showImage(objec){
        $.NZ_Window.show({
            url: objec,
            width: 700,
            height: 1200,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }
    function showImageZhuanZhang(objec){
        $.NZ_Window.show({
            url: objec,
            width: 700,
            height: 1200,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }


    function showTag(url){
        $.NZ_Window.show({
            url: url,
            width: 1200,
            height: 800,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
    }

    function modifyUserInfo(object){
        var username=object.id;
        $.NZ_Window.show({
            url: "/zy/queryUserByIdName?userName="+username,
            width: 1500,
            height: 1000,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }
</script>
</body>

</html>